package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.settlement.system.common.base.BaseEntity;
import com.settlement.system.common.enums.NoticeMessageTypeEnum;
import com.settlement.system.common.enums.UserReadEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* <p>
* 用户通知表
* </p>
*
* @author huangrensen
* @since 2024-01-05
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SysLazyUserNotice extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * 主键
    */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
    * 用户ID
    */
    private Long userId;


    /**
    * 手机号码
    */
    private String mobile;


    /**
    * 通知类型
    */
    private String messageType = NoticeMessageTypeEnum.APP_UPDATE.getValue();


    /**
    * 通知内容
    */
    private String content;


    /**
    * 用户是否已读（0：未读，1：已读）
    */
    private Integer userRead = UserReadEnum.N.getValue();

}
